package com.ddh.ddhsanguogame.service;

import com.ddh.ddhsanguogame.dto.CardUserRegisterDTO;
import com.ddh.ddhsanguogame.entity.CardUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ddh.ddhsanguogame.vo.CardUserLoginVO;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author
 * @since 2025-06-28
 */
public interface IUserService extends IService<CardUser> {
    /**
     *  注册
     * @param cardUserRegisterDTO
     */
    boolean register(CardUserRegisterDTO cardUserRegisterDTO);

    /**
     *  登录
     * @param cardUserRegisterDTO
     */
    CardUserLoginVO login(CardUserRegisterDTO cardUserRegisterDTO);

    /**
     * 根据用户 ID 获取用户对象。
     *
     * @param userId 用户 ID
     * @return 用户对象
     */
    CardUser getUserById(Long userId);
}
